package com.zp.self.module.level_5_设计模式.行为型模式.Ⅶ_中介者模式;

import org.assertj.core.util.Lists;

import java.util.List;

/**
 * @author ：by Zeng Peng
 * @date ：Created 2022/7/4 21:33
 * @description ：
 */
public class Client {
    public static void main(String[] args) {
        ServiceMediator serviceMediator = new ServiceMediator();
        WeixinTarget 周瑜 = new WeixinTarget(serviceMediator, "周瑜");
        WeixinTarget 诸葛亮 = new WeixinTarget(serviceMediator, "诸葛亮");

        QQTarget 彭于晏 = new QQTarget(serviceMediator, "彭于晏");

        彭于晏.send(Lists.newArrayList("周瑜", "诸葛亮"),"大家好");
    }
}
